package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.shop.bean.app.dto.MallDto;
import com.yami.shop.bean.model.Mall;
import com.yami.shop.dao.MallMapper;
import com.yami.shop.service.MallService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jjh
 * @since 2023-11-23
 */
@Service
public class MallServiceImpl extends ServiceImpl<MallMapper, Mall> implements MallService {
	@Resource
	private MallMapper mallMapper;
	@Override
	public IPage<MallDto> query(Page<MallDto> page, Map<String, Object> params) {
		return mallMapper.query(page,params);
	}
	@Override
	public MallDto getMallById(@Param("mallId") Long mallId){
		return mallMapper.getMallById(mallId);
	}

}
